home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 36 lines | [TEXT/GEOL] |
- Item 0120481 2-Nov-87 16:25
-
- From: BIANCHI1 Bianchi, Curt
-
- To: D0542 Productive Tech, Dev, Mark Gilford
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: Response to Custom…
-
- Mark,
-
- First, I like Larry's suggestion of overriding TFrame.ScrlToSBars instead of
- TrackAppControl, in which you ensure that the scroll bar values are constrained
- and then call INHERITED ScrlToSBars to carry out the scroll. In any case, you
- will have to override TFrame.
-
- In TWindow.DownInContent, it calls whatFrame.TrackAppControl, which is NOT
- NECESSARILY TFrame.TrackAppControl. It depends on the type of frame to which
- whatFrame refers. If whatFrame is a TCalFrame, then it will call
- TCalFrame.TrackAppControl, not TFrame.TrackAppControl. If TCalFrame is a
- decendent of TFrame, then you should need to resort to custom windows or
- typecasts, etc.
-
- Perhaps where you're having trouble is that with a custom frame you can't
- create your window and frame objects with NewSimpleWindow, since it creates a
- frame of type TFrame. In your DoMakeWindows method you must explicitly create
- your window and frame objects, making sure that you create a frame object of
- type TCalFrame. Instead of calling NewSimpleWindow, you should do something
- similar in your DoMakeWindows, but create a TCalFrame object instead of a
- TFrame object. You'll find NewSimpleWindow in UMacApp.inc2.p.
-
- Curt Bianchi
-
-
-